<template>
	<div >
		<!-- 导入echarts组件 -->
		<Echarts :userData='userData'></Echarts>
	</div>
</template>

<script>
	import Echarts from '../../../../components/EchartsData/Echarts.vue'
	export default{
		components:{
			Echarts
		},
		data(){
			return{
				userData:[],
				loading:false
			}
		},
	    async created() {
			this.loading=true
			await this.axios.get('/api/admin/index').then(res=>{
				this.loading=false
				console.log(res);
				this.userData=res.data
			}).catch(err=>{
				console.log(err)
			})
		}
	}
</script>

<style>
</style>
